package com.ptswitch.material.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ptswitch.material.dao.ContractPaymentMapper;
import com.ptswitch.material.model.contract.ContractPayment;
import com.ptswitch.material.service.ContractPaymentService;

@Service
public class ContractPaymentServiceImpl implements ContractPaymentService {

    @Autowired
    private ContractPaymentMapper mapper;

    @Override
    public void save(ContractPayment payment) {
        mapper.add(payment);

    }

    @Override
    public ContractPayment findById(long id) {
        return mapper.findById(id);
    }

}
